/*
 * Copyright (C)  Tsing Micro Co., Ltd. All rights reserved.
 *
 */

#include <aos/hal/flash.h>
#include "mtd_tiny.h"
#include "board_partitions.h"

mtd_t mtd;

void mtd_init(void)
{
// #ifdef CONFIG_AOS_FATFS_SUPPORT_FLASH
    mtd.type  = MTD_FLASH;
    mtd.erase = hal_flash_erase;
    mtd.write = hal_flash_write;
    mtd.read  = hal_flash_read;
// #elif defined(CONFIG_AOS_FATFS_SUPPORT_MMC)
//     mtd.type  = MTD_EMMC;
//     mtd.erase = hal_mmc_adapt_erase;
//     mtd.write = hal_mmc_adapt_write;
//     mtd.read  = hal_mmc_adapt_read;
// #endif

    return;
}